/*
  Customization of the VuePress Tabs plugin
  https://www.npmjs.com/package/vuepress-plugin-tabs
  Copyright (c) 2018 Panagiotis Skordilakis
  The MIT license
*/

.tabs-component {
  margin 0;
  border: 1px solid #cfdbe4;
  border-radius: 6px;

  ul.tabs-component-tabs {
    margin: 0;
    padding-left: 0;
    border: none;
    border-bottom: 1px solid #cfdbe4;
    background-color: #fafbff;
    overflow-x: auto;

    /* overwrite default styles for all resolutions */
    align-items: stretch;
    display: flex;
    justify-content: flex-start;
    padding-inline-start: 0;
    width: 100%;
    border-radius: 6px 6px 0 0!important;

    li.tabs-component-tab {
      margin-right: 0;
      border-radius: 0;
      border: none;
      background: transparent;

      a.tabs-component-tab-a {
        padding: 0.5em 1.2em;
        color: $textColor;
        margin: 3px 3px 0px 3px;

        &:hover {
          text-decoration: none;
        }
      }

      &.is-disabled a {
        color: #CFDBE4;
      }

      &.is-active {
        border-bottom: 3px solid #2556f2;

        &:hover a {
          color: $textColor;
        }
      }
    }
  }

  .tabs-component-panels {
    padding: 16px;
    box-shadow: none;
    border: none;
    border-radius: 0 0 6px 6px;
    background: $tabsComponentBackgroundColor;

    pre {
      max-height: 392px;
      margin: 0;
      border-radius: 0;
    }
  }
  
  &.selected-preview .tabs-component-panels {
    background: transparent;
  }
}
